import { createSSRApp } from 'vue'
import * as Pinia from 'pinia'
import tmui from './tmui'
import App from './App.vue'
import * as Router from './router'

export function createApp() {
  const app = createSSRApp(App)
  app.use(tmui, { shareDisable: true, router: Router } as Tmui.tmuiConfig)
  return {
    app,
    Pinia
  }
}
